package nsu.edu.zsq.dao;

import java.util.List;
import java.util.Map;

import nsu.edu.zsq.bean.ResitExamStudent;
import nsu.edu.zsq.bean.ResitExamStudentExample;
import org.apache.ibatis.annotations.Param;

public interface ResitExamStudentMapper {
    /**
     *
     */
    long countByExample(ResitExamStudentExample example);

    /**
     *
     */
    int deleteByExample(ResitExamStudentExample example);

    /**
     *
     */
    int deleteByPrimaryKey(Integer id);

    /**
     *
     */
    int insert(ResitExamStudent record);

    /**
     *
     */
    int insertSelective(ResitExamStudent record);

    /**
     *
     */
    List<ResitExamStudent> selectByExample(ResitExamStudentExample example);

    /**
     *
     */
    ResitExamStudent selectByPrimaryKey(Integer id);

    /**
     *
     */
    int updateByExampleSelective(@Param("record") ResitExamStudent record, @Param("example") ResitExamStudentExample example);

    /**
     *
     */
    int updateByExample(@Param("record") ResitExamStudent record, @Param("example") ResitExamStudentExample example);

    /**
     *
     */
    int updateByPrimaryKeySelective(ResitExamStudent record);

    /**
     *
     */
    int updateByPrimaryKey(ResitExamStudent record);

    /**
     * 获取当前补考课程中的考试学生
     * @param resitExamStudent 考试学生信息
     * @return List<ResitExamStudent>
     */
    List<ResitExamStudent> listResitExamStudent(ResitExamStudent resitExamStudent);

    /**
     * 通过学号，获取该学生所有的补考安排
     * @param stuNo 学号
     * @return List<Map<String, Object>>
     */
    List<Map<String, Object>> getResitExamInfo(String stuNo);
}